package com.zhku.xxl.service.serviceImp;

import com.zhku.xxl.dao.UserDao;
import com.zhku.xxl.dao.daoImp.UserDaoImp;
import com.zhku.xxl.entity.User;
import com.zhku.xxl.service.GenericService;
import com.zhku.xxl.service.UserService;

public class UserServiceImp extends GenericService<User> implements UserService {

    private UserDao userDao = new UserDaoImp();
    @Override
    public User findByAccount( String account) {
        return super.findByAccount(User.class,account);
    }

    @Override
    public int updateInfo(String name, String contact, String email,String password,int Id) {
        return super.updateInfo(User.class,name,contact,email,password,Id);
    }

    @Override
    public User findById(String id) {
        return userDao.findById(id);
    }

    @Override
    public int insertUser(User user) {
        return insert(user);
    }

}
